#!/usr/bin/env bash
apt-get -y install xinetd rsync
systemctl enable xinetd.service
service xinetd restart
systemctl enable rsync
systemctl start rsync
useradd -d /home -s /sbin/nologin kaikong
passwd kaikong
chown -R kaikong:kaikong /home
echo kaikong:kaikong >/etc/rsync.pass
chmod 600 /etc/rsync.pass